<ul class="expandingMenu floatRight">
    <li>
    {if $userLoggedIn}
        <a href="#">{$userDisplayName}</a>
        <ul>
            <li class="selected"><a href="/{$baseDir}/{$language}/user/index/{$userName}">/##TXT_BUTTON_PROFILE##/</a></li>
            <li><a href="/{$baseDir}/{$language}/user/logout">/##TXT_BUTTON_LOGOUT##/</a></li>
        </ul>
    {else}
        <a href="/{$baseDir}/{$language}/user/login/">/##TXT_BUTTON_LOGIN##/</a>
    {/if}
    </li>
</ul>